package com.yuebanmaoshare.file.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuebanmaoshare.file.domain.Favorite;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FavoriteMapper extends BaseMapper<Favorite> {
    List<Favorite> selectFavoriteList(String userId);
    Favorite selectFavoriteByFileId(String userId, String fileId);
    int insertFavorite(Favorite favorite);
    int deleteFavorite(String userId, String fileId);
} 